<div id="content" >





			
			
<?php foreach($types_2 as $gg => $type) { ?>

			<div class="group1" style="margin-top: 20px">
				<div class="box_search">
					<form action="<?php echo $this->Html->url(array('action' => 'category', $type['ApplyType']['id'])); ?>" method="POST" id="filter_index2_<?php echo $type['ApplyType']['id'] ?>">
						<div class="detail_search">
							<p class="key_title"><?php echo $type['ApplyType']['name'] ?></p>
							
							<div class="select_box">

								<input type="text" name="filter_keyword" value="" class="keyword" />
								<select onchange="$('#filter_index2_<?php echo $type['ApplyType']['id'] ?>').submit();" name="filter_city_id">
								    <option value="all"><?php __('Tỉnh/Thành'); ?></option>
								    <?php foreach($cities as $c ) {
									$selected = "";
									if($c["City"]["id"] == $city_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $c["City"]["id"] ?>" <?php echo $selected; ?> ><?php echo $c["City"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index2_<?php echo $type['ApplyType']['id'] ?>').submit();" name="filter_district_id" id="RecruitmentDistrictId">
								    <option value="all">- <?php __('Quận/Huyện'); ?> -</option>
								    <?php foreach($districts as $d ) {
									$selected = "";
									if($d["District"]["id"] == $district_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $d["District"]["id"] ?>" <?php echo $selected; ?> ><?php echo $d["District"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index2_<?php echo $type['ApplyType']['id'] ?>').submit();" name="filter_career_id" id="RecruitmentCareerId">
								    <option value="all">- <?php __('Ngành nghề'); ?> -</option>
								    <?php foreach($careers as $ca ) {
									$selected = "";
									if($ca["Career"]["id"] == $career_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $ca["Career"]["id"] ?>" <?php echo $selected; ?> ><?php echo $ca["Career"]["name"] ?></option>
								    <?php } ?>
								</select>
							</div><!--end select_box-->
						</div><!-- end detail_search-->
					</form>

				</div><!--end box_search-->					
				
					
				<div class="table_list">

					<table id="ncdt" width="100%" cellspacing="0" cellpadding="0" border="0">
						<tr class="title">
							<td>Tiêu đề hồ sơ</td>
							<td>Tên ứng viên</td>
							<td>Tỉnh/Thành</td>
						
							<td>Kinh nghiệm</td>
							<td>Ngày đăng</td>
						</tr>
						<?php foreach($type['products'] as $k => $item) {
							$class = $k%2 == 0 ? "odd" : "even" ;
						?>
									<tr class="<?php echo $class; ?>">
										<td><?php echo $this->Html->link(__($item["Apply"]["tieude"], true), array('action' => 'view', $item['Apply']['id'])); ?></td>

			<td><?php echo $item["Apply"]["tenungvien"] ?></td>
										<td><?php echo $item["City"]["name"] ?></td>
										
										<td><?php echo $item["Apply"]["trinhdo"] ?></td>
										<td><?php echo date('d/m/Y', strtotime($item["Apply"]["create_date"])); ?></td>
									</tr>
						<?php } ?>
						
					</table>
					<p class="read_more"><a href="<?php echo $this->Html->url(array('controller'=>'applies', 'action' => 'category', $type['ApplyType']['id'])); ?>">Xem thêm >></a></p>

				</div><!--end table_list-->				
			</div><!--end group-->
			

<?php } ?>
			
			
			<script type="text/javascript">
			$(function(){
				$('#metadata').html($('#metadataz').html());
			});
						
			</script>
                        